//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['Daniel Sloss','Bob Hope Theatre - CA','Stockton, CA','Friday','5/10/2024','7:30 PM','6132349','Daniel-Sloss-5-10-2024'],['Mariachi Los Camperos','Bob Hope Theatre - CA','Stockton, CA','Saturday','5/11/2024','8:00 PM','6161201','Mariachi-Los-Camperos-5-11-2024'],['Jorge Lozano H.','Bob Hope Theatre - CA','Stockton, CA','Saturday','5/18/2024','8:30 PM','6268516','Jorge-Lozano-H--5-18-2024'],['Sesame Street Live!','Bob Hope Theatre - CA','Stockton, CA','Tuesday','6/4/2024','6:00 PM','6084357','Sesame-Street-Live--6-4-2024'],['Mariachi Sol De Mexico','Bob Hope Theatre - CA','Stockton, CA','Sunday','6/16/2024','5:00 PM','6245463','Mariachi-Sol-De-Mexico-6-16-2024'],['Brit Floyd','Bob Hope Theatre - CA','Stockton, CA','Saturday','6/22/2024','8:00 PM','6296398','Brit-Floyd-6-22-2024'],['Intocable','Bob Hope Theatre - CA','Stockton, CA','Friday','6/28/2024','8:00 PM','6262746','Intocable-6-28-2024'],['The Concert - A Tribute to Abba','Bob Hope Theatre - CA','Stockton, CA','Sunday','7/14/2024','7:00 PM','6417569','The-Concert---A-Tribute-to-Abba-7-14-2024'],['Jeff Dunham','Bob Hope Theatre - CA','Stockton, CA','Wednesday','7/24/2024','7:00 PM','6398813','Jeff-Dunham-7-24-2024'],['Jeff Dunham','Bob Hope Theatre - CA','Stockton, CA','Thursday','7/25/2024','7:00 PM','6398814','Jeff-Dunham-7-25-2024'],['Dr. Cesar Lozano','Bob Hope Theatre - CA','Stockton, CA','Saturday','9/7/2024','8:00 PM','6290942','Dr--Cesar-Lozano-9-7-2024'],['Edicion Especial','Bob Hope Theatre - CA','Stockton, CA','Friday','9/27/2024','8:00 PM','6358654','Edicion-Especial-9-27-2024'],['Nutcracker! Magical Christmas Ballet','Bob Hope Theatre - CA','Stockton, CA','Saturday','11/9/2024','7:00 PM','6357652','Nutcracker--Magical-Christmas-Ballet-11-9-2024'],['Brad Williams','Bob Hope Theatre - CA','Stockton, CA','Thursday','12/5/2024','7:00 PM','6319511','Brad-Williams-12-5-2024'],['Dos Mas Dos','Bob Hope Theatre - CA','Stockton, CA','Friday','9/12/2070','8:00 PM','4427705','Dos-Mas-Dos-9-12-2070']],'Bob Hope Theatre','http://www.ticketnetwork.com/ticket/Bob-Hope-Theatre-events.aspx');